/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.fee.entity;

import com.jeeplus.modules.fee.entity.Tax;
import javax.validation.constraints.NotNull;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 费用类型Entity
 * @author weisong
 * @version 2017-09-18
 */
public class Type extends DataEntity<Type> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 费用类型名称
	private String feeDesc;		// 费用类型描述
	private Tax tax;		// 税种
	private String feeCode;		// 费用类型代码
	private Integer feeType;		// 收支类型
	
	public Type() {
		super();
	}

	public Type(String id){
		super(id);
	}

	@ExcelField(title="费用类型名称", align=2, sort=6)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@ExcelField(title="费用类型描述", align=2, sort=7)
	public String getFeeDesc() {
		return feeDesc;
	}

	public void setFeeDesc(String feeDesc) {
		this.feeDesc = feeDesc;
	}
	
	@NotNull(message="税种不能为空")
	@ExcelField(title="税种", fieldType=Tax.class, value="", align=2, sort=8)
	public Tax getTax() {
		return tax;
	}

	public void setTax(Tax tax) {
		this.tax = tax;
	}
	
	@ExcelField(title="费用类型代码", align=2, sort=9)
	public String getFeeCode() {
		return feeCode;
	}

	public void setFeeCode(String feeCode) {
		this.feeCode = feeCode;
	}
	
	@NotNull(message="收支类型不能为空")
	@ExcelField(title="收支类型", align=2, sort=10)
	public Integer getFeeType() {
		return feeType;
	}

	public void setFeeType(Integer feeType) {
		this.feeType = feeType;
	}
	
}